package com.gome.ocean.dao.model.websql;

/**
 * SQL模板
 * @author haqiaolong 2016年9月18日 上午10:59:37
 * @since 5.0.0
 */
public class SqlTplVO {

    private Integer id;
    
    private String text;
    
    private int leaf;
    
    private int order_id;
    
    private int expanded;
    
    private int allowDrag;

    private String qtip;
    

    
    
    
    public String getQtip() {
        return qtip;
    }



    
    public void setQtip(String qtip) {
        this.qtip = qtip;
    }



    public Integer getId() {
        return id;
    }


    
    public void setId(Integer id) {
        this.id = id;
    }


    public String getText() {
        return text;
    }

    
    public void setText(String text) {
        this.text = text;
    }

    
    public int getLeaf() {
        return leaf;
    }

    
    public void setLeaf(int leaf) {
        this.leaf = leaf;
    }

    
    public int getOrder_id() {
        return order_id;
    }

    
    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    
    public int getExpanded() {
        return expanded;
    }

    
    public void setExpanded(int expanded) {
        this.expanded = expanded;
    }

    
    public int getAllowDrag() {
        return allowDrag;
    }

    
    public void setAllowDrag(int allowDrag) {
        this.allowDrag = allowDrag;
    }


    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + allowDrag;
        result = prime * result + expanded;
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + leaf;
        result = prime * result + order_id;
        result = prime * result + ((text == null) ? 0 : text.hashCode());
        return result;
    }


    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        SqlTplVO other = (SqlTplVO) obj;
        if (allowDrag != other.allowDrag) return false;
        if (expanded != other.expanded) return false;
        if (id == null) {
            if (other.id != null) return false;
        } else if (!id.equals(other.id)) return false;
        if (leaf != other.leaf) return false;
        if (order_id != other.order_id) return false;
        if (text == null) {
            if (other.text != null) return false;
        } else if (!text.equals(other.text)) return false;
        return true;
    }
    
    
}
